const getVal = val => val < 2 ? val : getVal(val - 1) + getVal(val - 2);
this.onmessage = function(event){
	const result = getVal(event.data);
	this.postMessage(result);
}